import RuiPage from './rui-page'
import RuiTable from './rui-table'
import RuiForm from './rui-form'
import RuiQuery from './rui-query'
import RuiNumber from './rewrite/number-input'

const components = {
    RuiPage,
    RuiTable,
    RuiQuery,
    RuiForm,
    RuiNumber
}

const install = function(Vue, opts = {}) {
    if (install.installed) return;

    Object.keys(components).forEach(key => {
        Vue.component(key, components[key]);
    });
}

export default {
    install
};
